package com.kabigon.mall.multi.dto;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * Minio Bucket访问策略配置
 *
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.mall.multi.dto
 * @data 2022/4/10 19:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
public class BucketPolicyConfigDto {

    private String version;
    private List<Statement> statement;

    @Data
    @EqualsAndHashCode(callSuper = false)
    @Builder
    public static class Statement {
        private String effect;
        private String action;
        private String resource;
        private String principal;
    }
}
